<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查找</title>
</head>
<body bgcolor="#EEF2FB">
<div align="center">
<br>
  	<s:form action="fodUser" method="POST" >
  	     <font size=5 style="color:#6666FF;font-family:华文行楷">用户名（工号）:</font><input type ="text" name ="wid">
  	 <input type ="submit"value ="查找">
  	</s:form>
  	 </div>
  	<%
  	String s=(String)request.getAttribute("message");
  	if(s.equals("success")){ %>
  	  员工信息如下：<br/>
		职工号：<s:property value="wid"/><br>
		用户名：<s:property value="username"/><br/> 
		性别：<s:property value="sex"/><br/>
		年龄：<s:property value="age"/><br/>
		入职日期：<s:property value="wdate"/><br/>
		地址：<s:property value="address"/><br/>
		工资：<s:property value="salary"/>
    <%}%>
  	<%
  	if(s.equals("error")){ %>
 工号输入错误
     <%}%>
</body>
</html>